package com.zheng.shop.dao.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 支付方式表
 * </p>
 *
 * @author likun
 * @since 2017-12-29
 */
@TableName("shop_payment_config")
public class ShopPaymentConfig extends Model<ShopPaymentConfig> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 创建时间
     */
	private Date ctime;
    /**
     * 修改时间
     */
	private Date mtime;
    /**
     * 商店设置对象
     */
	@TableField("config_object_store")
	private String configObjectStore;
    /**
     * 描述
     */
	private String description;
    /**
     * 支付方式名称
     */
	private String name;
    /**
     * 排序
     */
	@TableField("order_list")
	private Integer orderList;
    /**
     * 支付方式
     */
	@TableField("payment_config_type")
	private Integer paymentConfigType;
    /**
     * 支付金额
     */
	@TableField("payment_fee")
	private BigDecimal paymentFee;
    /**
     * 支付费用类型
     */
	@TableField("payment_fee_type")
	private Integer paymentFeeType;
	@TableField("default_payment")
	private Boolean defaultPayment;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getCtime() {
		return ctime;
	}

	public void setCtime(Date ctime) {
		this.ctime = ctime;
	}

	public Date getMtime() {
		return mtime;
	}

	public void setMtime(Date mtime) {
		this.mtime = mtime;
	}

	public String getConfigObjectStore() {
		return configObjectStore;
	}

	public void setConfigObjectStore(String configObjectStore) {
		this.configObjectStore = configObjectStore;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getOrderList() {
		return orderList;
	}

	public void setOrderList(Integer orderList) {
		this.orderList = orderList;
	}

	public Integer getPaymentConfigType() {
		return paymentConfigType;
	}

	public void setPaymentConfigType(Integer paymentConfigType) {
		this.paymentConfigType = paymentConfigType;
	}

	public BigDecimal getPaymentFee() {
		return paymentFee;
	}

	public void setPaymentFee(BigDecimal paymentFee) {
		this.paymentFee = paymentFee;
	}

	public Integer getPaymentFeeType() {
		return paymentFeeType;
	}

	public void setPaymentFeeType(Integer paymentFeeType) {
		this.paymentFeeType = paymentFeeType;
	}

	public Boolean getDefaultPayment() {
		return defaultPayment;
	}

	public void setDefaultPayment(Boolean defaultPayment) {
		this.defaultPayment = defaultPayment;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ShopPaymentConfig{" +
			"id=" + id +
			", ctime=" + ctime +
			", mtime=" + mtime +
			", configObjectStore=" + configObjectStore +
			", description=" + description +
			", name=" + name +
			", orderList=" + orderList +
			", paymentConfigType=" + paymentConfigType +
			", paymentFee=" + paymentFee +
			", paymentFeeType=" + paymentFeeType +
			", defaultPayment=" + defaultPayment +
			"}";
	}
}
